#ifndef __MW_CPP_EFFECT_H__
#define __MW_CPP_EFFECT_H__

#include "cocos2d.h"
#include "GameLayer.h"
USING_NS_CC;

class Effect : public cocos2d::Node
{
    
private:
    Sprite *m_sprite;
    
public:
    CREATE_FUNC(Effect);
    Effect();
    ~Effect(void);
    
    // flare effect
    void flareEffect(const char* filename, Node* parent, CallFunc* callback);
    void explode(Node *parent, Point pos);
    void spark(Point pos, GameLayer*parent, float scale = 0.3, float duration = 0.5);

    
};
#endif /* defined(__MW_CPP_EFFECT_H__) */